package com.redmaple.service;

import com.redmaple.entity.User;
import com.redmaple.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
	@Autowired
	private UserMapper userMapper;

	public List<User> findUser() {
		return userMapper.findUser();
	}

	public List<User> insertUser(String name, Integer age) {
		return userMapper.insertUser(name, age);
	}

}
